import framework.Factory;
import framework.Product;
import idcard.IDCardFactory;

public class Main {

    public static void main(String[] args) {
        Factory factory = new IDCardFactory();
        Product product1 = factory.create("小明");
        Product product2 = factory.create("小红");
        Product product3 = factory.create("小刚");

        product1.use();
        product2.use();
        product3.use();
    }

}
